package com.mike.pojo;

import java.io.Serializable;


/**
 * @author Administrator
 *登录注册用户表
 */
public class T_user implements Serializable {
	private static final long serialVersionUID = 1L;
	private	int id;
	private	String name;
	private	String password;
	private	int role;
	private	String question;
	private	String answer;
	public T_user(int id, String name, String password, int role, String question, String answer) {
		super();
		this.id = id;
		this.name = name;
		this.password = password;
		this.role = role;
		this.question = question;
		this.answer = answer;
	}
	
	public T_user(String name, String password) {
		super();
		this.name = name;
		this.password = password;
	}

	public T_user(String name, String password, int role, String question, String answer) {
		super();
		this.name = name;
		this.password = password;
		this.role = role;
		this.question = question;
		this.answer = answer;
	}

	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getPassword() {
		return password;
	}
	public void setPassword(String password) {
		this.password = password;
	}
	public int getRole() {
		return role;
	}
	public void setRole(int role) {
		this.role = role;
	}
	public String getQuestion() {
		return question;
	}
	public void setQuestion(String question) {
		this.question = question;
	}
	public String getAnswer() {
		return answer;
	}
	public void setAnswer(String answer) {
		this.answer = answer;
	}
	public static long getSerialversionuid() {
		return serialVersionUID;
	}
	@Override
	public String toString() {
		return "Users [id=" + id + ", name=" + name + ", password=" + password + ", role=" + role + ", question="
				+ question + ", answer=" + answer + "]";
	}
	
	public T_user() {
		// TODO Auto-generated constructor stub
	}
}
